<%
    String frm;
    frm = request.getParameter("frm");
    if (frm==null){
        out.print("404");
    }
    else{
        response.sendRedirect(frm+".jsp?"+request.getQueryString());
    }
%>